package o2o.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: Jahnke [1029777564@qq.com]
 * Date: 2018-03-10 10:53
 * mongoDB properties
 */
@Component
@ConfigurationProperties(prefix = "user-server.mongo")
public class MongoProperties {

    private String url;
    private Integer port;
    private String username;
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUrl() {
        return url;
    }

    public MongoProperties setUrl(String url) {
        this.url = url;
        return this;
    }

    public Integer getPort() {
        return port;
    }

    public MongoProperties setPort(Integer port) {
        this.port = port;
        return this;
    }
}
